﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;

namespace FierceWar
{
	public class BoundingBoxNode
	{
		public OrientedBoundingBox OrientedBoundingBox;
		public int Identifier = Int32.MinValue;
		public List<BoundingBoxNode> Children = new List<BoundingBoxNode>(8);
		public List<ElementalModel> Models = new List<ElementalModel>();

		public BoundingBoxNode(Vector3 min, Vector3 max)
		{
			OrientedBoundingBox = new OrientedBoundingBox(min, max);
		}

		public bool IsLeaf
		{
			get
			{
				return (Children.Count == 0);
			}
		}
	}
}
